From b826f0fe6196262c4ccac6e5b1df6544cda25c4b Mon Sep 17 00:00:00 2001
From: Alex Suykov <alex.suykov@gmail.com>
Date: Tue, 30 Dec 2014 22:00:59 +0200
Subject: [PATCH 1/7] ppoll()

---
 lib/ppoll.c          | 11 +++++++++++
 syscalls.s/__ppoll.S |  5 +++++
 2 files changed, 16 insertions(+)
 create mode 100644 lib/ppoll.c
 create mode 100644 syscalls.s/__ppoll.S

diff --git a/lib/ppoll.c b/lib/ppoll.c
new file mode 100644
index 0000000..3991d9a
--- /dev/null
+++ b/lib/ppoll.c
@@ -0,0 +1,11 @@
+#include <poll.h>
+#include <signal.h>
+#include "syscalls.h"
+
+#ifdef __NR_ppoll
+int ppoll(struct pollfd* fds, nfds_t nfds, const struct timespec *timeout,
+		const sigset_t* sigmask)
+{
+	return __ppoll(fds, nfds, timeout, sigmask, _NSIG/8);
+}
+#endif
diff --git a/syscalls.s/__ppoll.S b/syscalls.s/__ppoll.S
new file mode 100644
index 0000000..1c9deb6
--- /dev/null
+++ b/syscalls.s/__ppoll.S
@@ -0,0 +1,5 @@
+#include "syscalls.h"
+
+#ifdef __NR_ppoll
+syscall(ppoll,__ppoll)
+#endif
-- 
2.0.3

